package com.cskaoyan.service;

import org.springframework.stereotype.Service;

/**
 * @author stone
 * @date 2022/08/03 10:22
 */
@Service
public class UserServiceImpl implements UserService{
    @Override
    public void sayHello() { //public void com.cskaoyan.service.UserServiceImpl.sayHello()
        System.out.println("hello world");
        try {
            Thread.sleep(5000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }


    @Override
    public String sayHello2() {
        System.out.println("hello2");
        return "hello 2";
    }

    @Override
    public String sayHello3() {
        System.out.println("sayHello3");
        int i = 1 / 0;
        return null;
    }
}
